package com.web.entity;

public class Student {

    private int id;
    private String name;
    private int age;
    private String gender;
    private String idcard;
    private String address;
    //数据库字段id_card --> idcard
    private String idCard;
    //班级对象
    private StudentClass studentClass;

    public StudentClass getStudentClass() {
        return studentClass;
    }

    public void setStudentClass(StudentClass studentClass) {
        this.studentClass = studentClass;
    }

    public Student() {
    }

    public Student(int id, String name, int age, String gender, String idcard, String address) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.idcard = idcard;
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getidcard() {
        return idcard;
    }

    public void setidcard(String idcard) {
        this.idcard = idcard;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", idcard='" + idcard + '\'' +
                ", address='" + address + '\'' +
                ", idCard='" + idCard + '\'' +
                ", studentClass=" + studentClass +
                '}';
    }
}
